package com.SwaggerTest.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/")
public class PageController {

    @RequestMapping(value = "/doc" ,method = RequestMethod.GET)
    public String getBootstartUI()
    {
        return  "redirect:/doc.html";
    }

    @RequestMapping(value ="/swagger", method = RequestMethod.GET)
    public String getswagger()
    {
        return "redirect:/swagger-ui.html";
    }
}
